package com.ethink.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.info.PurchaseReturnOrderModeInfo;
import com.ethink.order.api.model.PurchaseReturnModel;
import com.ethink.order.api.request.*;
import com.ethink.order.api.response.PurchaseReturnDetailResponse;

import java.util.List;

/**
 * 采购退单 Service接口
 *
 * @author default
 * @date 2022-12-06
 */
public interface PurchaseReturnOrderService {


    Long add(PurchaseReturnOrderAddRequest addRequest);

    Page<PurchaseReturnModel> pageQuery(PurchaseReturnPageQueryRequest request);

    PurchaseReturnDetailResponse queryDetail(Long id);

    Boolean delete(Long id);

    Boolean update(PurchaseReturnOrderUpdateRequest updateRequest);

    Boolean pass(Long id);

    Boolean updateStatus(PurchaseReturnOrderUpdateStatusRequest request);

    List<String> queryPurchaseReturnDetailOrderNosByOrderNos(List<String> orderNos);

    Boolean purchaseReturnOrderStatusFinish(List<String> orderNo);

    Page<PurchaseReturnOrderModeInfo> pageModeQuery(PurchaseReturnPageModeQueryRequest request);

}